﻿using GloboTicketAdmin.API.Models.Domain;
using GloboTicketAdmin.API.Repository;


namespace GloboTicketAdmin.API.Services.IService
{
    public interface ICategoryService : IBaseRepository<CategoryModel>
    {
        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="InsertCategory"></param>
        /// <returns></returns>
        public int InsertCategory(CategoryModel model);
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        public int DeleteCategoryById(string id);
        /// <summary>
        /// 更新
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        public int UpdateCategoryById(CategoryModel model, bool ignoreNullColumns = false);

        /// <summary>
        /// 添加多个
        /// </summary>
        /// <param name="category"></param>
        /// <returns></returns>
        public int AddCategory(List<CategoryModel> categorys);

        /// <summary>
        /// 查询
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public CategoryModel GetCategoryById(string id);
        public List<CategoryModel> GetAllCategories();
    }
}
